# -*- coding:utf-8 -*-

from django.urls import path, re_path
from rest_framework.routers import SimpleRouter
from Apps.Interface.views.interfaceCat import InterfaceCatView
from Apps.Interface.views.interfaceEnv import InterfaceEnvView, InterfaceEnvListView
from Apps.Interface.views.interfaceTest import InterfaceTestView, RunInterfaceTestView

route = SimpleRouter()
route.register("interfaceCat", InterfaceCatView, basename="interfaceCat")
route.register("interfaceTest", InterfaceTestView, basename="interfaceTest")
route.register("InterfaceEnv", InterfaceEnvView, basename="InterfaceEnv")

urlpatterns = [
                  path("interfaceEnvList/<str:project_id>/", InterfaceEnvListView.as_view()),
                  path("runInterfaceTest/", RunInterfaceTestView.as_view())
              ] + route.urls
